#ifndef PRODUCT_H_
#define PRODUCT_H_

#include <string>
#include <sstream>

using namespace std;

struct Product {
private:
    //constants

    // private data
    int prod_id;
    int cat_id;
    string prod_name;
    double prod_price;


public:
	//default constructor	-- RT
	Product() : prod_id(0), cat_id(0), prod_name(""), prod_price(0) { 	
	}
    // constructors
    Product(int prods_id, int cate_id, string prods_name, double prods_price)
    : prod_id(prods_id), cat_id(cate_id), prod_name(prods_name), prod_price(prods_price) {
    }

    // utility functions
    string display() const{			// RT
        stringstream stringData;
        stringData << "Product Name :" <<prod_name << " ";
        return stringData.str();
    }
	
    // getter
    int get_prod_id() const {
        return prod_id;
    }
    
    int get_cat_id() const {
        return cat_id;
    }
    
    string get_prod_name() const {
        return prod_name;
    }
    
    double get_prod_price() const {
        return prod_price;
    }
};

#endif //PRODUCT_H_
